home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000340_news@newsmaster….columbia.edu _Thu Sep 11 04:58:32 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  9KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id EAA13551
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 11 Sep 1997 04:58:22 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id EAA12359
  7.     for kermit.misc@watsun; Thu, 11 Sep 1997 04:58:21 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!newsfeed.internetmci.com!newsfeed.internetmci.com!205.185.79.5!zdc!szdc!newsp.zippo.com!mdrn
  9. From: dallasii@kincyb.com
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: RE: MSDOS Kermit to Kermit/2..
  12. Date: 11 Sep 1997 00:41:11 -0700
  13. Organization: None
  14. Lines: 201
  15. Message-ID: <TCPSMTP.17.9.11.0.45.8.2375661496.4684067@kincyb.com>
  16. NNTP-Posting-Host: MHS
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:7662
  18.  
  19.  
  20.   >     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  21.         wrote:
  22.  
  23.   > Newsgroups:  comp.protocols.kermit.misc
  24.   > Subject:  Re: MSDOS Kermit to Kermit/2 script conversion notes
  25.   > Date:  8 Sep 1997 13:54:19 GMT
  26.   > Organization:  Columbia University
  27.   > Lines:  168
  28.   > Message-ID:  <5v102b$cen$1@apakabar.cc.columbia.edu>
  29.   > References:  <TCPSMTP.17.9.8.2.15.0.2375661496.4677362@kincyb.com>
  30.   > NNTP-Posting-Host:  watsun.cc.columbia.edu
  31.   > Xref:  news.reference.com comp.protocols.kermit.misc:609
  32.   > 
  33.   > 
  34.   > 
  35.   > In article <TCPSMTP.17.9.8.2.15.0.2375661496.4677362@kincyb.com>,
  36.   >  <dallasii@kincyb.com> wrote:
  37.   > : 
  38.   > : [I'm cross-posting this to several forums where I think it will be
  39.   > : appropriate for discussion.
  40.   > : I apologize to anyone who finds it inappropriate (or long winded).]
  41.   > 
  42.   > It is considered polite to cross-post by listing all of the newsgroups
  43.   > in one copy of the post instead of sending separate posts to each
  44.   > group.  That way every group gets to see the responses.
  45.  
  46. Sorry.  I posted this via post-comp.protocols.kermit.misc@newspost.zippo.com
  47. because I've found it more reliable about actually getting something on the 
  48. newsgroups than my supposedly direct Usenet access (and less trouble than
  49. DejaNews)
  50. I also posted to post-comp.os.os2.setup.misc@newspost.zippo.com since I
  51. viewed it as dealing with 'setup' (right or wrong).
  52. There, the only response I got so far was some email from a service at:
  53.  
  54. http://www.experts-exchange.com 
  55.  
  56.  
  57.  
  58.  
  59.   > 
  60.   > : Some notes on converting command files from MS-DOS Kermit 3.14 to
  61.   > : Kermit/2 (Kermit-95 (C-Kermit for Windows-95) for OS/2)
  62.   > : (henceforth referred to as K2, K/2 or K2.EXE)
  63.   > : I welcome any comments:
  64.   > : 
  65.   > : 1) The OS/2 "EXTPROC" command seems to be the most underdocumented
  66.   > :    OS/2 command I've come across.  Few of the BIG, THICK OS/2 books
  67.   > :    (henceforth referred to as BTOB's) had much on it.  Almost nowhere
  68.   > :    was there a real working example of it.
  69.   > :    I expected it to be something similar to the UNIX 
  70.   > :    "#!/full/path/specification/to/the/interpreter" feature for the
  71.   > :    first line of a script.  Almost, but not quite.
  72.   > :    The documentation all said something to the effect of:
  73.   > : 
  74.   > :    EXTPROC <device>:\full\path\interpreter <parameters here>
  75.   > 
  76.   > That is the correct syntax for EXTPROC, but ...
  77.   > 
  78.   > :    I *expected* to use something like:
  79.   > : 
  80.   > :    EXTPROC <device>:\full\path\k2.exe = %1 %2 %3 %4 %5  %6 %7 %8 %9
  81.   > 
  82.   > This is not the syntax for Kermit-95.  K95 (and C-Kermit) requires that
  83.   > the command file be the first parameter on the command line.
  84.   > 
  85.   > :  on the first line of the procs to use them as OS/2 commands that
  86.   > : would pass the parameters to the script previously used for
  87.   > : MS-DOS Kermit into \&@[0] ... \&@[8].
  88.   > : 
  89.   > : What I found was needed was:
  90.   > : 
  91.   > :    EXTPROC <device>:\full\path\k2.exe <device>:\full\path\to\the\script.c
  92. md
  93.   > 
  94.   > That is almost correct.
  95.   > 
  96.   > Try just 
  97.   > 
  98.   > ^HEXTPROC K2.EXE 
  99.   > 
  100.   > assuming that K2.EXE is in your PATH.  Then it should work fine.  OS/2
  101.   > will expand the current .CMD file and use that as the first parameter,
  102.   > and then the .CMD command line parameters will follow it.
  103.   > 
  104.   > You can then access the command line parameters using command line
  105.   > argument array \&@[].
  106.   >..............................................................
  107.  
  108. I think I was confused by the little bit of EXTPROC (in OS/2) documentation
  109. I had access to, which coupled with the generic C-Kermit documentation
  110. made me think that parameters *needed* to be on the script EXTPROC line,
  111. after the interpreter is specified.
  112. Here is what I found to work, when the .CMD file is both in the
  113. path, or the current directory:
  114.  
  115. EXTPROC D:\K2\K2.EXE 
  116. ; C:\USR\COMM\Ktest7.CMD
  117. ; LAFN login script
  118. ; DEL 30/01/97
  119. echo \&@[0] \&@[1] \&@[2] \&@[3] \&@[4] \&@[5] \&@[6] \&@[7] \&@[8] \&@[9] \&@[
  120. 10]
  121. IF DEFINED \&@[2] ASSIGN \%1 \&@[2] 
  122. IF DEFINED \&@[3] ASSIGN \%2 \&@[3]
  123. IF DEFINED \&@[4] ASSIGN \%3 \&@[4]
  124. echo \%1 \%2  \%3 \%4 \7 \7 \7 \7 \7 the input
  125. echo Ktest7!\13\10
  126. EXIT
  127.  
  128. then I type:
  129. ktest7 a b c d e f g 
  130.  
  131. which output:
  132. Executing D:\K2\K2\EXE for OS/2
  133. Good Evening, smile.
  134. D:  KTEST7.CMD  a b c d e f g
  135. a b c the input
  136. Ktest7!
  137.  
  138. This is acceptable to me.
  139. Does it seem like I'm clear on the concept?
  140.  
  141.   > 
  142.   > : 2) While functioning as a comment in K/2, and apparently in
  143.   > : most versions of C-Kermit, EXTPROC required some bogus
  144.   > : definition as a macro to minimize interuption when scripts
  145.   > : were run back with MS-DOS Kermit, I think I just 
  146.   > : "define EXTPROC echo" in my MSCUSTOM.INI file to allow things
  147.   > : to flow smoothly.
  148.   > 
  149.   > EXTPROC is not supported in DOS.  Therefore, I do not believe that
  150.   > anybody ever thought to add it there.
  151.  
  152. My goal is to make some command file scripts executable in several OS's on my
  153. machine in as many ways as possible, with just one file holding the script -
  154. various flavors of DOS and DOS Emulators, OS/2 and LINUX C-Kermit 
  155. from within the appropriate version of Kermit.  
  156. Also at least some of the command files should be able
  157. to be executed from either the OS/2 or Linux shell command lines.
  158. (I think both being impossible due to the mutual exclusion of EXTPROC and
  159. #! both being on the first line, but the changes to convert from one to the
  160. other should be pretty mechanical.  Maybe there is some trick, but I haven't
  161. given it much thought.)
  162.  
  163.   > 
  164.   > : 4) The GUI dialer works fine for targets where dialing in
  165.   > : ..................................................... 
  166.   > The dialer provides for automatic retries.  No scripting required.
  167.   > This is built into K95's DIAL command.  The number of retries,
  168.   > interval between retries, etc are located on the Location->General
  169.   > page.
  170.   > 
  171.   > If your host has multiple phone numbers you want to try use a Dialing
  172.   > directory and specify the dialing directory entry name in the phone
  173.   > number field instead of an actual phone number.  K95 will auto-dial
  174.   > through the entire list.
  175.   > 
  176.   > The dialer will not prompt for the password.  However, you can specify
  177.   > your own wrapper script that will prompt for the password and then
  178.   > TAKE LOGIN.KSC to login.  I will consider adding this feature.
  179.   > 
  180.  
  181. Thanks for the consideration, and the pointers.
  182.  
  183.   > : 5) I found I was frequently having to modify portions of the
  184.   > : .............................
  185.   > : 
  186.   > You will have to show us the script you are using to login in for us
  187.   > ............................................................
  188.   > 
  189.   > Send support questions to kermit-support@columbia.edu.
  190.   > 
  191.   >     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  192.   >                  The Kermit Project * Columbia University
  193.   >        612 West 115th St #716 * New York, NY * 10025 * (212) 854-1344
  194.   >     http://www.columbia.edu/kermit/k95.html * kermit-support@columbia.edu  
  195.  
  196.   > 
  197.  
  198. Before I take you up on that, let me experiment some more - this last
  199. item wasn't really anything *failing* to work, it just didn't seem
  200. intuitive to me.
  201.  
  202. Again, much thanks - you guys have unbelievable patience.
  203.  
  204.  
  205. Regards,
  206. Dallas E. Legan II
  207. (562) 862 - 4854 ext. '*'
  208. legan@acm.org
  209. aw585@lafn.org
  210. dallasii@kincyb.com
  211.  
  212. "But I found that the rulers were ordinary men, too, and frequently
  213. as bewildered as I was."
  214.  
  215.                 from "Solution Unsatisfactory"
  216.                    by Robert A. Heinlein
  217.  
  218. I speak only for myself, and assume full responsibility for my statements.
  219.  
  220.